home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: peer-news.britain.eu.net!liv!news
- From: nickc@liv.ac.uk (Spider plant breeding program)
- Subject: () syntax for constructor for an array?
- Message-ID: <NICKC.96Mar7121149@uxe.liv.ac.uk>
- Sender: news@liverpool.ac.uk (News System)
- Nntp-Posting-Host: uxe.liv.ac.uk
- Organization: M-6 M-4 M-x hanoi
- Date: Thu, 7 Mar 1996 12:11:49 GMT
-
- I can initalise an array with:
-
- float f[2] = { 2.718, 3.142 };
-
-
- Is there some form of C++ syntax that can be used in a constructor - ie:
-
-
- class a
- {
- float f[2];
-
- public:
- a() : f( /* What goes in here ? */ )
- {};
- };
-
-
- Thanks in advance for your help,
-
- Nicholas Clark
-
- --
- C:\> ECHO f 0000:0000 ffff 66 | DEBUG
-